
   class Base {
        int a;
        int b =20;
    }

public class Derived extends Base {
            int c;
            char b ='A';
    public void method(){
        a = 10; // 访问从父类中继承下来的a
         // 访问从父类中继承下来的b
        c = 30; // 访问子类自己的c
         System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        }

    public static void main(String[] args) {
        Derived derived = new Derived();
        derived.method();
    }
}